package com.ict.datamanagement.exception;

import com.ict.datamanagement.common.StatusCode;
import lombok.Data;

@Data
public class BusinessException extends RuntimeException{

    private final int code;

    public BusinessException(StatusCode statusCode) {
        super(statusCode.getMessage());
        this.code = statusCode.getCode();
    }
}
